package com.example.myapplication;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

public class Activity_UC2 extends AppCompatActivity implements View.OnClickListener{

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity__uc2);

        findViewById(R.id.btn_ReturnMain).setOnClickListener(this);
    }

    public void onClick(View v){
        Intent intent=new Intent();
        switch (v.getId()){
            case R.id.btn_ReturnMain:
                intent.setClass(this,MainActivity.class);
                startActivity(intent);
                break;
        }
    }
}
